#root {
  max-width: 1280px;
  /* margin: 0 auto; */
  padding: 2rem;
  text-align: center;
}

.logo {
  height: 6em;
  padding: 1.5em;
  will-change: filter;
  transition: filter 300ms;
}
.logo:hover {
  filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.react:hover {
  filter: drop-shadow(0 0 2em #61dafbaa);
}

@keyframes logo-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: no-preference) {
  a:nth-of-type(2) .logo {
    animation: logo-spin infinite 20s linear;
  }
}

.card {
  padding: 2em;
}

.read-the-docs {
  color: #888;
}

body {
    background: #f6f8fa;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
}

.chat-page {
    display: flex;
    height: 100vh;
    background: #f6f8fa;
}

.history-panel {
    width: 240px;
    border-right: 1px solid #e5e7eb;
    padding: 24px 16px 16px 16px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.new-conversation-btn {
    background: #4f8cff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.new-conversation-btn:hover {
    background: #2563eb;
}

.history-panel input[type="text"] {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 12px;
    outline: none;
    font-size: 15px;
    background: #f9fafb;
}

.history-panel ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.history-panel li {
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 4px;
    transition: background 0.2s, color 0.2s;
    font-size: 15px;
    color: #222;
}
.history-panel li.active,
.history-panel li:hover {
    background: #e6f0ff;
    color: #2563eb;
}

.chat-window {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 32px 0 0 0;
    background: #f6f8fa;
}

.message-list {

    width: 1280px;
    flex-grow: 1;
    overflow-y: auto;
    padding: 0 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    max-width: 60%;
    padding: 12px 18px;
    border-radius: 16px;
    font-size: 16px;
    line-height: 1.6;
    word-break: break-word;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.message.Qwen3-235B-A22B {
    align-self: flex-end;
    background: linear-gradient(90deg, #e6f0ff 0%, #c3e0ff 100%);
    color: #2563eb;
}

.message.user {
    align-self: flex-start;
    background: #fff;
    color: #222;
}

.input-area {
    display: flex;
    padding: 24px 32px 24px 32px;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    gap: 12px;
}

.input-area input {
    flex-grow: 1;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    background: #f9fafb;
}

.input-area button {
    padding: 0 28px;
    background: #4f8cff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.input-area button:hover {
    background: #2563eb;
}
